package com.prs.crm.domain.official;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import com.prs.crm.domain.BaseEntity;

/**
 * 短消息收藏
 * @author Yanghao
 *	2012-8-23 17:53:19
 */
@Entity
@Table(name="official_shortmessagecollect")
public class ShortMessageCollect extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	private ShortMessage shortMessage;
	@ManyToOne
	private ShortMessageReceive shortMessageReceive;
	
	@ManyToOne
	private ShortMenssageCollectType type;  //收藏类别
	
 
	public ShortMessageReceive getShortMessageReceive() {
		return shortMessageReceive;
	}

	public void setShortMessageReceive(ShortMessageReceive shortMessageReceive) {
		this.shortMessageReceive = shortMessageReceive;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ShortMessage getShortMessage() {
		return shortMessage;
	}

	public void setShortMessage(ShortMessage shortMessage) {
		this.shortMessage = shortMessage;
	}

	public ShortMenssageCollectType getType() {
		return type;
	}

	public void setType(ShortMenssageCollectType type) {
		this.type = type;
	}
}
